import 'package:flutter/cupertino.dart';

class FadeBuiltTransition extends StatelessWidget {
  const FadeBuiltTransition({
    super.key,
    required this.opacity,
    required this.child,
  });

  final Animation<double> opacity;
  final Widget child;

  @override
  Widget build(BuildContext context) {
    return AnimatedBuilder(
      animation: opacity,
      child: child,
      builder: (context, child) {
        return Opacity(
          opacity: opacity.value,
          child: child,
        );
      },
    );
  }
}